<!-- 编辑重点人员标签 -->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>重点人员标签添加页面</title>
  <link rel="stylesheet" href="../../yl/index.css" />
  <!-- 布局样式 -->
  <link rel="stylesheet" href="../../yl/style.css" />
  <link rel="stylesheet" href="../../yl/mobile.css" />
  <link rel="stylesheet" href="../../yl/easyui.css" />
  <link rel="stylesheet" href="../../yl/icon.css" />
</head>

<body>
  <div class="easyui-navpanel" id="app" v-cloak>
    <header>
      <div class="m-toolbar">
        <div class="m-title">修改人员标签信息</div>
      </div>
    </header>
    <div class="easyui-navpanel panel-body panel-body-nobottom panel-body-noborder" style="height: 3000px"
      id="MainTable" ref="MainTable"
      :data-options="JSON.stringify({ 'TableName': 'personal_information', 'form': 'dataForm','primary_key': 'ID_Card_Number' })">
    <div class="yl-main">
        <div class="table_titel">
            <div class="titel">人员信息</div>
        </div>
        <el-descriptions :column="1" size="large" border>
           <el-descriptions-item>
              <template #label>
                <div class="cell-item">身份证</div>
              </template>
              <el-form-item prop="ID_Card_Number" >
                <el-input @change="shibie" v-model="dataForm.ID_Card_Number" class="borderless-input"
                  placeholder="请输入身份证" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">姓名</div>
              </template>
              <el-form-item prop="Personal_Name">
                <el-input  v-model="dataForm.Personal_Name" class="borderless-input" placeholder="请输入姓名" />
              </el-form-item>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">性别</div>
              </template>
          
              <el-input  v-model="dataForm.Gender" class="borderless-input" placeholder="请输入性别" />
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">出生日期</div>
              </template>
              <el-input  v-model="dataForm.Birthday" class="borderless-input" placeholder="请输入出生日期" />
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">户籍地</div>
              </template>
              
                <el-input  v-model="dataForm.Registered_Residence" class="borderless-input" placeholder="请输入户籍地" />
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">现居地址</div>
              </template>
              <el-input  v-model="dataForm.Home_Address" class="borderless-input" placeholder="请输入家庭地址" />
            </el-descriptions-item>
         
        </el-descriptions>
        <div id="ChildTable">
          <div class="table_titel">
            <div class="titel">人员标签类型</div>
            <div class="operation">
              <el-button type="primary" size="small" @click="handleAdd('childDataForm')">新增</el-button>
              <el-button type="danger" size="small" @click="handleRemove('childDataForm')">删除</el-button>
            </div>
          </div>
          <el-form :model="{childDataForm}" ref="form1" inline-message="true" style="width: 100%">
            <el-descriptions
              :data-options="JSON.stringify({ 'TableName': 'personal_mapping_tags', 'form': 'childDataForm', 'ParentTableName': 'personal_information'})"
              :column="3" size="large" border>
              <el-descriptions-item v-for="(item,index) in childDataForm.filter(item => item.Row_Status != '1')"
                :key="index">
                <template #label>
                  <div class="cell-item">标签{{index + 1}}</div>
                </template>
                <el-form-item :prop="'childDataForm.'+index+'.Personal_Tag_SerialNumber'" :rules="[{ required: true, message: '请输入人员标签', trigger: 'blur' }]">
                  <el-select v-model="item.Personal_Tag_SerialNumber" placeholder="请选择">
                  <el-option
                    v-for="item in options"
                    :key="item.Personal_Tag_SerialNumber"
                    :label="item.Personal_Tag"
                    :value="item.Personal_Tag_SerialNumber">
                  </el-option>
                </el-select>
                </el-form-item>
              </el-descriptions-item>
            </el-descriptions>
          </el-form>
      </div> 
      
    <footer class="botton-ann">
      <el-button @click="goBack">返回</el-button>
      <el-button type="primary" plain @click="handleSubmit" :loading="loading">提交</el-button>
    </footer>
  </div>
      
    </div>
    <!-- <footer class="botton-ann">
      <el-button @click="goBack">返回</el-button>
      <el-button type="primary" plain @click="handleSubmit" :loading="loading">提交</el-button>
    </footer> -->
  </div>
  <div><!-- 在party_fees.html的表格操作列中 -->
<el-table-column label="操作">
  <template #default="{row}">
    <el-button @click="goToEdit(row)">编辑</el-button>
  </template>
</el-table-column>

</div>
</body>
<script src="../../utils/utils.js"></script>
<script src="../../utils/compressor.js"></script>
<script src="../../config/config.js"></script>
<script src="../../utils/mixins.js"></script>
<script src="../../yl/vue.js"></script>
<script src="../../yl/index.js"></script>
<script src="../../yl/zh-cn.mjs"></script>
<script src="../../yl/index.iife.min.js"></script>
<script src="../../yl/jquery.min.js"></script>
<script src="../../utils/jquery.cookie.js"></script>
<script src="../../yl/jquery.easyui.min.js"></script>
<script src="../../yl/jquery.easyui.mobile.js"></script>
<script src="../../yl/moment.min.js"></script>
<script src="../../api/request.js"></script>
<script src="./js/party_member_informationEdit.js"></script>
<!-- <script>
methods: {
  goToEdit(idCard) ;{
    // 跳转到编辑页并携带身份证参数
    window.location.href = `party_member_informationEdit.html?action=Modify&id_card=${idCard}`;
  }
}
</script> -->
</html>